package cn.smart.epic.core.util;

import javax.servlet.http.HttpSession;

/**
 * @Auther Z.B
 * @date 2017/10/11 14:10
 * @Email 2545375@qq.com
 * @Description 请输入你的描述
 * @since 1.0
 */

public class HttpSessionHolder {

    private static ThreadLocal<HttpSession> t1 = new ThreadLocal<>();

    public static void put(HttpSession httpSession) {
        t1.set(httpSession);
    }

    public static HttpSession get() {
        return t1.get();
    }

    public static void remove() {
        t1.remove();
    }
}
